package com.echo.im.platform.core.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 *
 * @author echo
 * @date 2024-08-18
 */
@Data
public class RecallMessageDTO {

    @NotNull(message = "接收用户id不可为空")
    @Schema(description = "接收用户id")
    private Long recvId;

    @Length(max = 50, message = "内容长度不得大于50")
    @NotEmpty(message = "撤回消息ID不可为空")
    @Schema(description = "撤回消息ID")
    private String recallMsgId;
}
